import React from 'react';
import './App.css'
import Input from './component/todoInput'
import Broad from './component/todoBroad'

class App extends React.Component {
  constructor() {
    super();
    this.state = {
      item: {}
    }
  }

  addVal = (item)=> {
      this.setState({
        item
      })
  }

  render() {
    return (
      <div>
        <Input addVal={this.addVal} />
        <Broad item={this.state.item} />
      </div>
    )
  }
}

export default App;
